<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>演示地址</title>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script src="http://souvc.oschina.io/jquery-modile-vcode/jquery-modile-vcode.js"></script>

</head>
<body>
<input type="text" class="lr-input" placeholder="请输入短信验证码" style="width:145px;padding-left:15px" id="code" name="code" value="">
<input id="btnSendCode1" class="lr-btnSendCode" value="获取验证码" type="button">
</body>

<script type="text/javascript">
/*
*******************************
*  手机验证码
*******************************
*/
$(".lr-btnSendCode").modileCode({
    inputVerily: true,
     verilyFunction : function(obj){  //表单验证函数，必须配置inputVerily为true
       /*  var flag;
        flag = $("#register_modile").val() != ""&&$("#register_modile").val() != $("#register_modile").attr("placeholder");
        if(!flag){
            alert("请输入手机号");
        } */
        //return flag;
    	 return true;
    },
	count : 10
},function(){
	//向后台发送处理数据
	//$.ajax({
	//   type: "POST", //用POST方式传输
	//   dataType: "text", //数据格式:JSON
	//   url: '', //目标地址-后台
	//   data: "dealType=" + dealType +"&uid=" + uid + "&code=" + code,
	//   error: function (XMLHttpRequest, textStatus, errorThrown) { },
	//   success: function (msg){ }
	//});
});
</script>
</html>